
#ifndef _COMPATIBILITE_H_
#define _COMPATIBILITE_H_

#include "TrueLoveClient.h"

class Compatibilite
{
public:
	Compatibilite() {}
	Compatibilite(TrueLoveClient pC1, TrueLoveClient pC2) { c1 = pC1; c2 = pC2; }
	~Compatibilite() {}
	int GetTauxCompatibilite() { return tauxCompatibilite; }
	int GetCorrespondanceCriteres();
	int GetCorrespondanceHobbys();
	int GetDiffAge();
	void SetTauxCompatibilite(int pTaux) { tauxCompatibilite = pTaux; }
	TrueLoveClient GetClient1() { return c1; }
	TrueLoveClient GetClient2() { return c2; }
	void SetClient1(TrueLoveClient c) { c1 = c; }
	void SetClient2(TrueLoveClient c) { c2 = c; }
	static int CalculTauxCompatibilite(TrueLoveClient c1, TrueLoveClient c2);

private:
	TrueLoveClient c1;
	TrueLoveClient c2;
	int tauxCompatibilite;	// en pourcentage
	static int CalculTauxCritere(int c1, int c2);
	static int CheckRequiredConstraints(TrueLoveClient c1, TrueLoveClient c2);
	static bool SameCategory(QString q1, QString q2);
};

#endif

